package com.wxx.controller;

import com.wxx.common.RedisUtils;
import com.wxx.util.JsonData;
import com.wxx.util.RedisPoolUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/redis/")
public class RedisController {

    @Autowired
    private RedisUtils redisUtils;

    @RequestMapping("test")
    public Object test() {
        redisUtils.setValue("b","a啊啊啊啊",50);
        return JsonData.success();
    }

}
